<?php 	

/**
 * 异常监控通知
 */
class RiskService extends Service {

    public static function notice($content) {
        try{
            $time = time();
            $ymd = date('Ymd',$time);
            $riskModel = new RiskMonitorModule();
            $data = array(
                'content_index' => 'datacenter_lock',
                'info_text' => '【监控预警】风控业务监控-众众，'.$content,
                'receive_name'=>'飞书群',
                'receive_account' => 'https://open.feishu.cn/open-apis/bot/v2/hook/b6c151e6-8b00-486b-b0c2-ea9a83fdb9ff',
                'receive_type' => 2,
                'create_ymd' => $ymd,
                'create_time' => $time,
            );
            $riskModel->addSendRecord($data);
        }catch (\Exception $e){

        }
    }

}